﻿using System;
namespace Zinnia.Logging
{
    /// <summary>
    /// 空日志记录器
    /// </summary>
    public class NullLogger : ILogger
    {
        private NullLogger() { }
        private static readonly Lazy<NullLogger> Lazy = new Lazy<NullLogger>(() => new NullLogger());
        public static ILogger Instance { get { return Lazy.Value; } }
        public bool IsEnabled(LogLevel level)
        {
            return false;
        }

        public void Log(LogLevel level, Exception exception, string format, params object[] args)
        {

        }
    }
}
